<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2023-12-21
  Time: 15:21
  To change this template use File | Settings | File Templates.
--%>
<!-- 标记为HTML格式 -->
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page isELIgnored="false" %>
<!-- 设置页面为Chain -->
<html lang="ch">
<head>
    <title>个人中心</title>
    <!-- 设置地址栏主题背景颜色 -->
    <meta name="theme-color" content="#000000">
    <!-- 页面描述 -->
    <meta name="description" content="页面描述信息">
    <!-- 移动端显示 -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!-- 页面Logo -->
    <link rel="shortcut icon" href="http://localhost:8083/resource_packs/images/logo.png">
</head>
<body>
<jsp:useBean id="accountInformation" scope="request" type="com.xm.entity.AccountInformation"/>
<jsp:useBean id="unpaid" scope="request" type="java.lang.Integer"/>
<jsp:useBean id="notShipped" scope="request" type="java.lang.Integer"/>
<jsp:useBean id="noComment" scope="request" type="java.lang.Integer"/>
<div class="personal-information">
    <div class="mi-box">
        <div>
            <div class="box-bd">
                <div class="portal-main clearfix">
                    <div class="user-card">
                        <h2 class="username">${accountInformation.name}</h2>
                        <p class="tip"><span id="greeting"></span>~</p>
                        <a href="" class="link">修改个人信息 ></a>
                        <img src="http://localhost:8083/resource_packs/images/${accountInformation.avatar}"
                             class="avatar" alt="头像">
                    </div>
                    <div class="user-action">
                        <ul class="action-list">
                            <li>绑定手机：<span class="tel">${accountInformation.account.phone}</span></li>
                            <li>绑定邮箱：<span class="tel">${accountInformation.account.mailbox}</span></li>
                        </ul>
                    </div>
                </div>
                <div class="portal-sub">
                    <ul class="info-list">
                        <li>
                            <h3>待支付的订单：<span class="num">${unpaid}</span></h3>
                            <a class="personal_a_img"
                               href="${pageContext.request.contextPath}/order/servlet?order_id=2&menu=1">查看待支付订单
                                <img class="right-photo"
                                     src="http://localhost:8083/resource_packs/images/right_black.png"
                                     alt=""></a>
                            <img class="personal-information-img"
                                 src="http://localhost:8083/resource_packs/images/pay_order.png" alt="">
                        </li>
                        <li>
                            <h3>待收货的订单：<span class="num">${notShipped}</span></h3>
                            <a class="personal_a_img"
                               href="${pageContext.request.contextPath}/order/servlet?order_id=3&menu=1">查看待收货的订单
                                <img class="right-photo"
                                        src="http://localhost:8083/resource_packs/images/right_black.png"
                                        alt=""></a>
                            <img class="personal-information-img"
                                 src="http://localhost:8083/resource_packs/images/receiving_order.png" alt="">
                        </li>
                        <li>
                            <h3>待评价商品数：<span class="num">${noComment}</span></h3>
                            <a class="personal_a_img" href="http://localhost:8083/www.xiaomi.com/center?informationId=${notDecryptedInformationId}&accountId=${accountId}&name=${name}&menu=2">查看待评价商品
                                <img class="right-photo"
                                        src="http://localhost:8083/resource_packs/images/right_black.png"
                                        alt=""></a>
                            <img class="personal-information-img"
                                 src="http://localhost:8083/resource_packs/images/rate_product.png" alt="">
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
